#!/bin/bash

HOME_DIR=/root/face-api

FACE_LIB=${HOME_DIR}/facelib
LIB3=${HOME_DIR}/lib3

OPENBLAS=$LIB3/openblas-linux/lib

OPENCV=${LIB3}/opencv-linux/lib
CURL=${LIB3}/curl-linux/lib-ubuntu
LIB64=${LIB3}/lib64

FFMPEG=${LIB3}/ffmpeg-linux/lib
JSON=${LIB3}/json/lib-ubuntu

LIBS=${OPENBLAS}:${OPENCV}:${FACE_LIB}:${CURL}:${LIB64}:${FFMPEG}:${JSON}

export LD_LIBRARY_PATH=${OPENBLAS}:${OPENCV}:${FACE_LIB}:${CURL}:${LIB64}:${FFMPEG}:${JSON}

#./face_checkd -u rtsp://admin:abcd1234@10.1.3.241:554/Streaming/Channels/1 -f 10
#./face_checkd -u http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8 -f 10
echo "命令行参数:"$1,$2
#http://ivi.bupt.edu.cn/hls/cctv8.m3u8
#${HOME_DIR}/face_checkd -m "test_machine_id-10001" -i 127.0.0.1 -p 8083 -u http://ivi.bupt.edu.cn/hls/cctv8.m3u8 > check.log
nohup ${HOME_DIR}/face_checkd -m $1 -i $2 -p $3 -u $4 -r $5 -f $6 -s $7 -n $8 > $1.log 2>&1 &


